package com.vilinno.tlias.utils;

public class CurrentHolder {

    private static final ThreadLocal<Integer> CURRENT_LOCAL=new ThreadLocal<>();

    public static void setCurrentId(Integer id) {
        CURRENT_LOCAL.set(id);
    }
    public static Integer getCurrentId() {
        return CURRENT_LOCAL.get();
    }
    public static void removeCurrentId() {
        CURRENT_LOCAL.remove();
    }

}
